import 'package:flutter/material.dart';

class MyApp extends StatelessWidget {
  const MyApp({super.key, required this.title, required this.subTitle});

  final String title;
  final String subTitle;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        // 1.1 导航
        appBar: AppBar(
          backgroundColor: Colors.pink,
          title: Text(title),
        ),
        // 1.2 主体部分
        body: Center(
          child: Text(
            subTitle,
            textDirection: TextDirection.ltr,
            style: const TextStyle(fontSize: 30, color: Colors.blue),
          ),
        ));
  }
}
